import {createRouter, createWebHistory} from "vue-router";
import type { RouteRecordRaw } from 'vue-router'
import chapter1 from "./chapter1.ts";
import chapter2 from './chapter2';
const routes:RouteRecordRaw[] = [
    ...chapter1,
    ...chapter2
]
const router = createRouter({
    history: createWebHistory(),
    routes
})
router.beforeEach((to) => {
    document.title = 'three+vite+vue3 '+to.meta.title as string
})
export default router
